Skip to content

[feat] agent: add per-turn timing overview to conversation Trace (#468 Slice B) - #550

Open
yefuyou wants to merge 4 commits into
ThinkFlowLab:mainfrom
yefuyou:feat/468-slice-b-trace-timing-overview
Open

yefuyou wants to merge 4 commits into
ThinkFlowLab:mainfrom
yefuyou:feat/468-slice-b-trace-timing-overview

Conversation

@yefuyou

@yefuyou yefuyou commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Slice B of #468, following merged Slice A in #476.

Add a compact, interactive Timing Overview above the existing conversation Trace turn navigation. Each turn is represented by an accessible row containing its number, status, persisted duration, and a proportional bar. The slowest measured turn is highlighted. Selecting a row reuses the existing reveal(turnId) flow to select, expand, lazy-load, and scroll to the corresponding Trace detail.

Behavior and boundaries

Screenshots

English

English Trace Timing Overview

中文

中文轮次耗时概览

360px narrow-layout screenshot · 50-turn overview screenshot

Validation

  • Unit tests: tests/traceTimingOverview.test.ts 13/13 plus the existing Slice A and Trace tests. Full npm test locally: 1131 tests, 1129 passed; the 2 failures (tests/browserHost.test.ts, Python discovery and installed-server env) also fail on clean main in the local sandbox, and the GitHub frontend job passed.
  • Browser: trace_timing_overview.mjs (selection, lazy detail, keyboard, en-US/zh-CN, narrow screen, missing/partial data, a running row showing "Running" once) is in the browser manifest and passed in the GitHub browser lanes. It could not run locally because the sandbox lacks the bundled Agent.
  • tsc, build, i18n, browser-locale and manifest checks passed.
  • Recorded 10/50/100-turn fixture checks (earlier local run): overview displayed in ~258–400 ms; click to expanded detail ~9–40 ms; /traces and /jobs request counts stayed at 6 → 12 for all three sizes.
  • Docs: the English and Chinese turn-timing introductions now describe Slice B as implemented. A running row shows "Running" only once, in the status badge (checked in unit and browser tests for both locales).
  • GitHub Release checks on head 0e98ed7a (includes main 322f98c3): 17/17 passed.
  • Independent review: approved. Non-blocking: an unknown status value shows "Unavailable" in both badge and value cell, which is not covered by a test.

Refs #468. Depends on merged #476; unrelated to #449.

@yefuyou
yefuyou marked this pull request as ready for review December 5, 2026 15:25

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants